<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>登录成功</h1>
<hr>
<div>
  欢迎您：<span id="success_username"></span>
</div>

<!--使用CDN添加jQuery类库-->
<script src="https://lf26-cdn-tos.bytecdntp.com/cdn/expire-1-M/jquery/3.6.0/jquery.min.js"></script>

<script>
    let loginSuccessUser = {};

    if(sessionStorage.getItem("loginSuccessUser")!=null){
        loginSuccessUser = JSON.parse(sessionStorage.getItem("loginSuccessUser"));
        $("#success_username").text(loginSuccessUser.username);
    }
</script>
</body>
</html>